package b4.util.profile
{
	public class GameProfile
	{
		//是否是本地调试
		public static const DEBUG:Boolean = true;
		//是否是发布版本
		public static const RELEASE:Boolean = false;
		//版本号
		public static const VERSION:String = "0.1.0";
		//舞台宽度
		public static var stageWidth:Number;
		//舞台高度
		public static var stageHeight:Number;
		
		//游戏开发根目录
		public static var URL_DevelopRoot:String;
		//图像资源根目录
		public static var URL_ResourceRoot:String; 
		//游戏动作文件
		public static var URL_Action:String;
		//和后台通讯的密钥
		public static const SERVER_SECRET:String = "n.D1e.Pass10n";
		
		public function GameProfile()
		{
		}

		public static function setPlatform(pf:String = null):void
		{
			switch (pf)
			{
				case "pengyou":
				break;
				case "qzone":
				break;
				default:
					URL_DevelopRoot = "http://127.0.0.1/b4dev/";
					URL_ResourceRoot = URL_DevelopRoot + "resource/";
					URL_Action = URL_DevelopRoot + "action/action.php";
			}
		}
	}
}